import { Component } from 'angular2/core';
import { HeroService } from './fasade/hero.service';
import { 
    RouteConfig, 
    ROUTER_DIRECTIVES
} from 'angular2/router';
import { Routes } from './app.router';

@Component({
    selector: 'my-app',
    templateUrl: 'app/tpls/app.component.html',
    directives: [ ROUTER_DIRECTIVES ],
    providers: [
            HeroService
        ]
})
@RouteConfig(Routes)
export class AppComponent {
    title = 'Tour of Heroes';
}